﻿using CloudStorageLight.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace CloudStorageLight.SharePointWeb.Models
{
    public class CloudSettingsVM
    {
        public bool AzureAdMode { get; set; }
        public string Authority { get; set; }
        public string CloudStorageLightClientId { get; set; }
        public string CloudStorageLightAppKey { get; set; }
        public string TenantId { get; set; }
        public string Administrators { get; set; }


        public CloudSettingsVM()
        {
        }

        public CloudSettingsVM(CloudAccount account)
        {
            this.AzureAdMode = account.AzureAdMode;
            this.Authority = account.Authority;
            this.CloudStorageLightClientId = account.CloudStorageLightClientId;
            this.CloudStorageLightAppKey = account.CloudStorageLightAppKey;
            this.TenantId = account.TenantId;
            this.Administrators = account.Administrators;
        }        
    }
}